package com.pengli.mytools.ui.mainPage.classification;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ListView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.pengli.mytools.R;

import butterknife.BindView;
import butterknife.ButterKnife;

public class ClassificationFragment extends Fragment {

    @BindView(R.id.listview_fg_classification)
    ListView lv_classification;
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View root = inflater.inflate(R.layout.fragment_classification, container, false);

        ButterKnife.bind(this, root);

        initView();

        return root;
    }

    private void initView() {
        ArrayAdapter<String> adapter = new ArrayAdapter<String>(getContext(),
                android.R.layout.simple_list_item_1,new String[]{"vip解析",
                "电影",
                "电视剧" ,
                "少儿动画",
                "音乐",
                "薅羊毛"});
        lv_classification.setAdapter(adapter);


    }
}
